[][src]Crate human

Getting Started

Add the following to your Cargo.toml:

[dependencies.human]
version = "0.1"
// TODO

Enums

GameInput

Game input, W3 Standard gamepad with extensions events for PC/Console-style games.

Input

Input from any human interface device

Mode

How the keyboard/gamepad/pointer should be used if connected

TextInput

Typing input. Ctrl refers to Cmd on MacOS.

UiInput

User interface input; touchscreen, trackpad, mouse, keyboard or gamepad pointer.

Functions

input

Get user input from terminal and gamepads

mode_gamepad

Get the current input mode of the gamepad.

mode_keyboard

Get the current input mode of the keyboard.

mode_pointer

Get the current input mode of the pointer.

renumber

Turn gamepad renumbering on or off.

rumble

Send rumble effect to a mobile device or gamepad(s).

set_mode

Set the input mode for the different types of input devices.